<%@ page import="aqv.PoliticalParty" %>
<!DOCTYPE html>
<html class="no-js" lang="en">
	
	<head>
		<meta name="layout" content="aqvLayout2">
		<meta http-equiv="Content-type" content="text/html; charset=utf-8">
		<meta charset="utf-8"/>
		<title>A quien voto | Listado de partidos politicos</title>
	</head>
	<body>
		<!-- SUBHEADER
		================================================== -->
		<div id="subheader">
			<div class="row">
				<div class="twelve columns">
					<p class="left">
						 Listado de partidos politicos
					</p>
					<p class="right">El partido politico que buscas no esta?, <a href="${createLink(controller : 'PoliticalParty', action:'create')}">agregalo !!</a></p>
				</div>
			</div>
		</div>
		<div class="hr">
		</div>
		<!-- CONTENT 
		================================================== -->
		<div class="row">
			<div class="twelve columns">
				
<%--			<g:if test="${flash.message}">--%>
<%--				<div class="message" role="status">${flash.message}</div>--%>
<%--			</g:if>--%>
				
				<table>
					<thead>
						<tr>
						
							<g:sortableColumn property="name" title="${message(code: 'politicalParty.name.label', default: 'Name')}" />
						
							<g:sortableColumn property="cantOfPoliticians" title="${message(code: 'politicalParty.cantOfPoliticians.label', default: 'Cant Of Politicians')}" />
						
						</tr>
					</thead>
					<tbody>
						<g:each in="${politicalPartyInstanceList}" status="i" var="politicalPartyInstance">
							<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
							
								<td><g:link action="show" id="${politicalPartyInstance.id}">${fieldValue(bean: politicalPartyInstance, field: "name")}</g:link></td>
							
								<td>${fieldValue(bean: politicalPartyInstance, field: "cantOfPoliticians")}</td>
							
							</tr>
						</g:each>
					</tbody>
				</table>
				
				
			</div>
		</div>
		<div class="row">
			<div id="portofolio">
				
			</div>
		</div>
		<div class="hr">
		</div>

	</body>
</html>
